home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / connect < prev    next >
Encoding:
Text File  |  2001-03-21  |  497 b   |  22 lines

  1. Synopsis:
  2.    on [<modes>]connect [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever the client establishes a connection with
  6.    a server.
  7.  
  8. Parameters:
  9.    $0    the server connected to
  10.    $1    the port number of the server connected to
  11.    $2    server name as reported by the server
  12.  
  13. Examples:
  14.    To display where the client has connected:
  15.       on ^connect "*" {
  16.          echo *** Connected to $0 ($2) on port $1
  17.       }
  18.  
  19. See Also:
  20.    server(1)
  21.  
  22.